﻿@using FFF.Test.Entity.FW.View;
@using Microsoft.AspNetCore.Http;
@{
    ViewData["Title"] = "企业表创建界面";
    Layout = null;
    ViewFWUser currentUserInfo = base.Context.Session.GetUserInfo();
}
 <input type="hidden" id="uuid" name="id">


<div data-toggle="topjui-layout" data-options="fit:true">
    <div data-options="region:'center',title:'',fit:true,border:false,bodyCls:'border_right_bottom'">
        <div data-toggle="topjui-tabs" data-options="fit:true,border:false">
            <div title="@L("基本信息")" data-options="iconCls:'fa fa-th'">
                <div class="topjui-fluid">
                    <fieldset>
                        <legend>@L("基本信息")</legend>
                    </fieldset>
                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("企业名称")</label>
                            <div class="topjui-input-block">
                                <input id="myFormCompanyName" type="text" name="companyName" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("企业介绍")</label>
                            <div class="topjui-input-block">
                                <textarea id="myFormCompanyDesc" name="companyDesc" data-toggle="topjui-ueditor" data-options="id:'myFormCompanyDesc',mode:'simple',height:200"></textarea>
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("企业Logo")</label>
                            <div class="topjui-input-block">
                                <div class="topjui-col-sm10">
                                    <input type="text" id="myFormCompanyLogoUrl" name="companyLogoUrl" data-toggle="topjui-uploadbox"
                                           data-options="editable:false,
                                                   buttonText:'@L("上传图片")',
                                                   accept:'images',
                                                   uploadUrl:'@AppConfigConsts.PicDomain?type=FW_Company',
                                                   success:function(result){
                                                        $('#' + this.id).textbox('setValue', '@AppConfigConsts.PicLookDomain'+result.path)
                                                    }">
                                </div>
                                <div class="topjui-col-sm2" style="padding-top:5px;padding-left:10px;cursor:pointer">
                                        <a onclick="$.dm.showPic($('#myFormCompanyLogoUrl').val())">预览图片</a>
                                </div>
                            </div>
                        </div>
                    </div>

             
                </div>
            </div>
            @if (!string.IsNullOrEmpty(base.Context.Request.Query["uuid"]))
            {
                 @*<div title="@L("Iframe展示")" data-options="iconCls:'fa fa-th',border:true,iframe:true,disabled:false,
                        content:'<iframe src=\'/FW/ProTaskDelay/ProTaskDelayIndex?companyGUID=@(base.Context.Request.Query["uuid"])&&mode=@(base.Context.Request.Query["mode"])\' scrolling=\'auto\' frameborder=\'0\' style=\'width:100%;height:96%;\'></iframe>'">
                </div>*@
            }
            @*<div title="@L("选填信息")" data-options="iconCls:'fa fa-th'">
                    <div class="topjui-fluid">
                        <fieldset>
                            <legend>@L("扩展信息")</legend>
                        </fieldset>
                    </div>
                </div>*@
        </div>
    </div>
</div>

